package com.duan.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 
* Title: HelloWordController
* Description:  1 
* @author duanws
* @date 2018年7月5日
 */
@RestController
public class HelloWordController {
	
	@Autowired
	DiscoveryClient discoveryClient;
	
	@GetMapping("/hello")
	public String helloWord(){
		String services = "hello"+discoveryClient.getServices();
		return services;
	}
}
